package com.ssm.zhihu_ssm.service;

import com.ssm.zhihu_ssm.entity.Classify;
import com.ssm.zhihu_ssm.entity.Question;

import java.util.List;
import java.util.Map;

public interface QuestionService {

    void insertQuestion(int uid, String title, String content_question, int cid);//插入问题
    void followQuestion(int uid, int question_id, boolean isFollow);//关注问题
    List<Question> getQuestionByUserId(int id);//根据用户id得到问题
    List<Question> getQuestionByClassifyId(int classify_id);//根据主题id查找问题及排名
//    List<Question> getQuestionByAllClassify();//得到所有问题级排名
    Question getQuestionByQuestionId(int question_id, int uid);//根据问题id得到问题信息
    Map<String,Object> getClassifyNameByQuestionId(int question_id);//根据问题id得到话题名
    List<Classify> getClassify();//得到话题
    void addQuestionSkimNum(int question_id);//问题阅读量加1
}
